]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
cleanup: Remove some unhelpful unused arguments
authorFlorian Müllner <fmuellner@gnome.org>
Mon, 4 Feb 2019 11:30:53 +0000 (12:30 +0100)
committerFlorian Müllner <fmuellner@gnome.org>
Tue, 23 Jul 2019 22:28:45 +0000 (00:28 +0200)
Those unused arguments aren't bugs - unbeknownst to eslint, they all
correspond to valid signal parameters - but they don't contribute
anything to clarity, so just remove them anyway.

https://gitlab.gnome.org/GNOME/gnome-shell/merge_requests/627

33 files changed:
js/gdm/realmd.js
js/misc/inputMethod.js
js/perf/hwtest.js
js/portalHelper/main.js
js/ui/appDisplay.js
js/ui/audioDeviceSelection.js
js/ui/background.js
js/ui/barLevel.js
js/ui/calendar.js
js/ui/components/keyring.js
js/ui/endSessionDialog.js
js/ui/extensionDownloader.js
js/ui/ibusCandidatePopup.js
js/ui/keyboard.js
js/ui/lookingGlass.js
js/ui/magnifier.js
js/ui/magnifierDBus.js
js/ui/main.js
js/ui/panel.js
js/ui/pointerWatcher.js
js/ui/popupMenu.js
js/ui/screenshot.js
js/ui/shellDBus.js
js/ui/slider.js
js/ui/status/network.js
js/ui/status/volume.js
js/ui/switcherPopup.js
js/ui/tweener.js
js/ui/unlockDialog.js
js/ui/viewSelector.js
js/ui/windowManager.js
js/ui/workspace.js
js/ui/workspaceThumbnail.js

index ed02d601ad2ed99e39007c5703d0c85ef430d1af..913fdd3befe01166c4dd8d1dd1fcebe3a0febcd2 100644 (file)
@@ -15,7 +15,7 @@ const RealmIface = loadInterfaceXML("org.freedesktop.realmd.Realm");
 const Realm = Gio.DBusProxy.makeProxyWrapper(RealmIface);
 
 var Manager = class {
-    constructor(parentActor) {
+    constructor() {
         this._aggregateProvider = Provider(Gio.DBus.system,
                                            'org.freedesktop.realmd',
                                            '/org/freedesktop/realmd',
index 29bb2d4e2b9300803b418365ac74783104fa37a6..3f24586d7f1efa57d9458cc2e9c1bdf84eead88b 100644 (file)
@@ -88,7 +88,7 @@ class InputMethod extends Clutter.InputMethod {
         this.commit(text.get_text());
     }
 
-    _onDeleteSurroundingText(context) {
+    _onDeleteSurroundingText() {
         this.delete_surrounding();
     }
 
@@ -108,12 +108,12 @@ class InputMethod extends Clutter.InputMethod {
         this._preeditVisible = visible;
     }
 
-    _onShowPreeditText(context) {
+    _onShowPreeditText() {
         this._preeditVisible = true;
         this.set_preedit_text(this._preeditStr, this._preeditPos);
     }
 
-    _onHidePreeditText(context) {
+    _onHidePreeditText() {
         this.set_preedit_text(null, this._preeditPos);
         this._preeditVisible = false;
     }
index 1d9fd7ee06234ea1e3abc966f1f8ba0054ee1c07..b1d7ba0d21e04accba66965b682328fbf4fafbfe 100644 (file)
@@ -38,7 +38,7 @@ function waitAndDraw(milliseconds) {
     let timeline = new Clutter.Timeline({ duration: milliseconds });
     timeline.start();
 
-    timeline.connect('new-frame', (timeline, frame) => {
+    timeline.connect('new-frame', (_timeline, _frame) => {
         global.stage.queue_redraw();
     });
 
index ba4760a5cfa6f6f7bd7a9e06badea30580672427..76f7e7ccb244183a3cd4c0775ca8f31bb0bf08a2 100644 (file)
@@ -151,7 +151,7 @@ class PortalWindow extends Gtk.ApplicationWindow {
         this._webView.load_uri(this._originalUrl);
     }
 
-    vfunc_delete_event(event) {
+    vfunc_delete_event(_event) {
         if (this._recheckAtExit)
             this._doneCallback(PortalHelperResult.RECHECK);
         else
index a33929e67130115109ded56ac447fea9301e3473..189c9438052be92117f30d1839950fc8e61f2ee2 100644 (file)
@@ -839,7 +839,7 @@ var AppDisplay = class AppDisplay {
             this._controls.add_actor(this._views[i].control);
 
             let viewIndex = i;
-            this._views[i].control.connect('clicked', actor => {
+            this._views[i].control.connect('clicked', () => {
                 this._showView(viewIndex);
                 global.settings.set_uint('app-picker-view', viewIndex);
             });
@@ -1586,12 +1586,12 @@ var AppIcon = class AppIcon {
         GLib.Source.set_name_by_id(this._menuTimeoutId, '[gnome-shell] this.popupMenu');
     }
 
-    _onLeaveEvent(actor, event) {
+    _onLeaveEvent(_actor, _event) {
         this.actor.fake_release();
         this._removeMenuTimeout();
     }
 
-    _onButtonPress(actor, event) {
+    _onButtonPress(_actor, event) {
         let button = event.get_button();
         if (button == 1) {
             this._setPopupTimeout();
index d66970482b18456c07c4efeb19e59d6bcfd084b9..2f947e2493bd061063a00e72641643f58f19fd9d 100644 (file)
@@ -34,7 +34,7 @@ var AudioDeviceSelectionDialog = GObject.registerClass({
             throw new Error('Too few devices for a selection');
     }
 
-    _buildLayout(devices) {
+    _buildLayout() {
         let title = new St.Label({ style_class: 'audio-selection-title',
                                    text: _("Select Audio Device"),
                                    x_align: Clutter.ActorAlign.CENTER });
index 16bd1c573d620eb9b1041d1bd5c78a120ee91d3b..38f52c670da2386260c1622a1ea962c340aa5fea 100644 (file)
@@ -635,7 +635,7 @@ var Animation = class Animation {
     load(callback) {
         this._show = new GnomeDesktop.BGSlideShow({ file: this.file });
 
-        this._show.load_async(null, (object, result) => {
+        this._show.load_async(null, () => {
             this.loaded = true;
             if (callback)
                 callback();
index b0e16d916bd2675ed13a894696659b5a9c055ca9..afe71c9fb0eab6a139d992a70b5b31ac77a1f7cd 100644 (file)
@@ -172,19 +172,19 @@ var BarLevel = class {
         cr.$dispose();
     }
 
-    _getCurrentValue(actor) {
+    _getCurrentValue() {
         return this._value;
     }
 
-    _getOverdriveStart(actor) {
+    _getOverdriveStart() {
         return this._overdriveStart;
     }
 
-    _getMinimumValue(actor) {
+    _getMinimumValue() {
         return 0;
     }
 
-    _getMaximumValue(actor) {
+    _getMaximumValue() {
         return this._maxValue;
     }
 
@@ -192,7 +192,7 @@ var BarLevel = class {
         this._value = value;
     }
 
-    _valueChanged(barLevel, value, property) {
+    _valueChanged() {
         this._customAccessible.notify("accessible-value");
     }
 
index f1a102505f3464eb6dabfc5a98e7c4037ae72f38..a728c1fb9b15756c8a9767194a066fea11cf2fcb 100644 (file)
@@ -220,13 +220,13 @@ var DBusEventSource = class DBusEventSource {
         this._lastRequestEnd = null;
     }
 
-    _onNameAppeared(owner) {
+    _onNameAppeared() {
         this._initialized = true;
         this._resetCache();
         this._loadEvents(true);
     }
 
-    _onNameVanished(oldOwner) {
+    _onNameVanished() {
         this._resetCache();
         this.emit('changed');
     }
index af75ee0ac2d6522775fd999174d805f286d94fc3..0629ec849d347bf29ab831b831574012bda9dd04 100644 (file)
@@ -176,21 +176,21 @@ class KeyringDialog extends ModalDialog.ModalDialog {
         return false;
     }
 
-    _onShowPassword(prompt) {
+    _onShowPassword() {
         this._buildControlTable();
         this._ensureOpen();
         this._updateSensitivity(true);
         this._passwordEntry.grab_key_focus();
     }
 
-    _onShowConfirm(prompt) {
+    _onShowConfirm() {
         this._buildControlTable();
         this._ensureOpen();
         this._updateSensitivity(true);
         this._continueButton.grab_key_focus();
     }
 
-    _onHidePrompt(prompt) {
+    _onHidePrompt() {
         this.close();
     }
 
index ead7eae782637bea7ef195cf00b069c21695cee8..864fd084c34b0551cf9eff5e226e6b13ab48faee 100644 (file)
@@ -734,7 +734,7 @@ class EndSessionDialog extends ModalDialog.ModalDialog {
         let dialogContent = DialogContent[this._type];
 
         for (let i = 0; i < inhibitorObjectPaths.length; i++) {
-            let inhibitor = new GnomeSession.Inhibitor(inhibitorObjectPaths[i], (proxy, error) => {
+            let inhibitor = new GnomeSession.Inhibitor(inhibitorObjectPaths[i], proxy => {
                 this._onInhibitorLoaded(proxy);
             });
 
index 0c5bb396cdb54fcb59cb2162f2f4c90267c01461..858c3659c5d8698406e55ca9dbf00c5233cf18d1 100644 (file)
@@ -203,12 +203,12 @@ class InstallExtensionDialog extends ModalDialog.ModalDialog {
         this.contentLayout.add(content);
     }
 
-    _onCancelButtonPressed(button, event) {
+    _onCancelButtonPressed() {
         this.close();
         this._invocation.return_value(GLib.Variant.new('(s)', ['cancelled']));
     }
 
-    _onInstallButtonPressed(button, event) {
+    _onInstallButtonPressed() {
         let params = { shell_version: Config.PACKAGE_VERSION };
 
         let url = REPOSITORY_URL_DOWNLOAD.format(this._uuid);
index 0e987b7718e88688a31ed92e8073731982a991eb..f2e9350c7c91010aae7f28fa5b050fe6ba6fe2dd 100644 (file)
@@ -198,11 +198,11 @@ var CandidatePopup = class CandidatePopup {
                 this._setTextAttributes(this._preeditText.clutter_text,
                                         attrs);
         });
-        panelService.connect('show-preedit-text', ps => {
+        panelService.connect('show-preedit-text', () => {
             this._preeditText.show();
             this._updateVisibility();
         });
-        panelService.connect('hide-preedit-text', ps => {
+        panelService.connect('hide-preedit-text', () => {
             this._preeditText.hide();
             this._updateVisibility();
         });
@@ -212,11 +212,11 @@ var CandidatePopup = class CandidatePopup {
 
             this._auxText.text = text.get_text();
         });
-        panelService.connect('show-auxiliary-text', ps => {
+        panelService.connect('show-auxiliary-text', () => {
             this._auxText.show();
             this._updateVisibility();
         });
-        panelService.connect('hide-auxiliary-text', ps => {
+        panelService.connect('hide-auxiliary-text', () => {
             this._auxText.hide();
             this._updateVisibility();
         });
@@ -256,15 +256,15 @@ var CandidatePopup = class CandidatePopup {
             this._candidateArea.setOrientation(lookupTable.get_orientation());
             this._candidateArea.updateButtons(lookupTable.is_round(), page, nPages);
         });
-        panelService.connect('show-lookup-table', ps => {
+        panelService.connect('show-lookup-table', () => {
             this._candidateArea.actor.show();
             this._updateVisibility();
         });
-        panelService.connect('hide-lookup-table', ps => {
+        panelService.connect('hide-lookup-table', () => {
             this._candidateArea.actor.hide();
             this._updateVisibility();
         });
-        panelService.connect('focus-out', ps => {
+        panelService.connect('focus-out', () => {
             this._boxPointer.close(BoxPointer.PopupAnimation.NONE);
             Main.keyboard.resetSuggestions();
         });
index f84569c6931def39c3155658b8825e5c4b78da21..6b96407347ba5a2aa745efe1ee2870037fd2e14d 100644 (file)
@@ -100,7 +100,7 @@ class KeyContainer extends St.Widget {
         this._rows = [];
     }
 
-    appendRow(length) {
+    appendRow() {
         this._currentRow++;
         this._currentCol = 0;
 
@@ -1171,7 +1171,7 @@ var Keyboard = class Keyboard {
 
         this._emojiSelection = new EmojiSelection();
         this._emojiSelection.connect('toggle', this._toggleEmoji.bind(this));
-        this._emojiSelection.connect('hide', (selection) => this.hide());
+        this._emojiSelection.connect('hide', () => this.hide());
         this._emojiSelection.connect('emoji-selected', (selection, emoji) => {
             this._keyboardController.commitString(emoji);
         });
@@ -1467,7 +1467,7 @@ var Keyboard = class Keyboard {
         this._setActiveLayer(0);
     }
 
-    _onKeyboardGroupsChanged(keyboard) {
+    _onKeyboardGroupsChanged() {
         let nonGroupActors = [this._emojiSelection.actor, this._keypad.actor];
         this._aspectContainer.get_children().filter(c => !nonGroupActors.includes(c)).forEach(c => {
             c.destroy();
index 926f50adc66a2bc0214aada9c4d62b4cbba163d4..4022d10c440cf69205994da67aeb137b35bce9e5 100644 (file)
@@ -267,7 +267,7 @@ var ObjLink = class ObjLink {
         this._lookingGlass = lookingGlass;
     }
 
-    _onClicked(link) {
+    _onClicked() {
         this._lookingGlass.inspectObject(this._obj, this.actor);
     }
 };
index c84fd1a4861ca869a067f845238d8b5375133789..4d090d27f02771c20ae38f290ab12781f6baed42 100644 (file)
@@ -148,7 +148,7 @@ var Magnifier = class Magnifier {
     setActive(activate) {
         let isActive = this.isActive();
 
-        this._zoomRegions.forEach((zoomRegion, index, array) => {
+        this._zoomRegions.forEach(zoomRegion => {
             zoomRegion.setActive(activate);
         });
 
@@ -234,7 +234,7 @@ var Magnifier = class Magnifier {
             this.yMouse = yMouse;
 
             let sysMouseOverAny = false;
-            this._zoomRegions.forEach((zoomRegion, index, array) => {
+            this._zoomRegions.forEach(zoomRegion => {
                 if (zoomRegion.scrollToMousePos())
                     sysMouseOverAny = true;
             });
@@ -332,7 +332,7 @@ var Magnifier = class Magnifier {
         this.setCrosshairsClip(clip);
 
         let theCrossHairs = this._crossHairs;
-        this._zoomRegions.forEach ((zoomRegion, index, array) => {
+        this._zoomRegions.forEach (zoomRegion => {
             zoomRegion.addCrosshairs(theCrossHairs);
         });
     }
index 872ffe05c62d05db069e30d401e47e2a2d1d8572..04c7a8e2ca3663afbaa8a1dae5af39ec127b4cb6 100644 (file)
@@ -124,7 +124,7 @@ var ShellMagnifier = class ShellMagnifier {
         let zoomRegions = Main.magnifier.getZoomRegions();
         let objectPaths = [];
         let thoseZoomers = this._zoomers;
-        zoomRegions.forEach ((aZoomRegion, index, array) => {
+        zoomRegions.forEach (aZoomRegion => {
             let found = false;
             for (let objectPath in thoseZoomers) {
                 let proxyAndZoomRegion = thoseZoomers[objectPath];
index 2fd49962ee2520ec3a63d752c947c5643b5e013d..68e0889ed749e6f00ccc2734034453a7fd744d98 100644 (file)
@@ -658,7 +658,7 @@ function _queueBeforeRedraw(workId) {
  *
  * Returns: A string work identifier
  */
-function initializeDeferredWork(actor, callback, props) {
+function initializeDeferredWork(actor, callback) {
     // Turn into a string so we can use as an object property
     let workId = `${(++_deferredWorkSequence)}`;
     _deferredWorkData[workId] = { 'actor': actor,
index 36f1c2d2b6b2be46e0540f81b361374060cfbfa7..850c2a9651e1ed030434660f97127ce0cfa27333 100644 (file)
@@ -489,7 +489,7 @@ class ActivitiesButton extends PanelMenu.Button {
         return Clutter.EVENT_PROPAGATE;
     }
 
-    _xdndToggleOverview(actor) {
+    _xdndToggleOverview() {
         let [x, y, mask] = global.get_pointer();
         let pickedActor = global.stage.get_actor_at_pos(Clutter.PickMode.REACTIVE, x, y);
 
@@ -596,7 +596,7 @@ var PanelCorner = class {
 
             // Synchronize the locate button's pseudo classes with this corner
             this._buttonStyleChangedSignalId = button.connect('style-changed',
-                actor => {
+                () => {
                     let pseudoClass = button.get_style_pseudo_class();
                     this.actor.set_style_pseudo_class(pseudoClass);
                 });
index d1722bdaa6cdf8e6732d60307a0e4f7ddb50aa03..347315c78275cc94677029325c0e99a472e31be7 100644 (file)
@@ -72,13 +72,13 @@ var PointerWatcher = class {
         }
     }
 
-    _onIdleMonitorBecameActive(monitor) {
+    _onIdleMonitorBecameActive() {
         this._idle = false;
         this._updatePointer();
         this._updateTimeout();
     }
 
-    _onIdleMonitorBecameIdle(monitor) {
+    _onIdleMonitorBecameIdle() {
         this._idle = true;
         this._idleMonitor.add_user_active_watch(this._onIdleMonitorBecameActive.bind(this));
         this._updateTimeout();
@@ -108,7 +108,7 @@ var PointerWatcher = class {
     }
 
     _updatePointer() {
-        let [x, y, mods] = global.get_pointer();
+        let [x, y] = global.get_pointer();
         if (this.pointerX == x && this.pointerY == y)
             return;
 
index c5edf961715d4f3b3407043d9cd13280a13a1db6..8c8839c54f64096b67383087aa21efdd284bb987 100644 (file)
@@ -122,7 +122,7 @@ var PopupBaseMenuItem = GObject.registerClass({
         this._parent = parent;
     }
 
-    _onButtonPressEvent(actor, event) {
+    _onButtonPressEvent() {
         // This is the CSS active state
         this.add_style_pseudo_class('active');
         return Clutter.EVENT_PROPAGATE;
@@ -1193,11 +1193,11 @@ class PopupSubMenuMenuItem extends PopupBaseMenuItem {
         return super._onKeyPressEvent(actor, event);
     }
 
-    activate(event) {
+    activate(_event) {
         this._setOpenState(true);
     }
 
-    _onButtonReleaseEvent(actor) {
+    _onButtonReleaseEvent() {
         // Since we override the parent, we need to manage what the parent does
         // with the active style class
         this.remove_style_pseudo_class('active');
index a5f07f1166b43718c05c442f0041a5dd8d062354..c9f6bc1f4eb8b8e4d6264cde70de4dbb7b83dff1 100644 (file)
@@ -295,7 +295,7 @@ var SelectArea = class {
         return Clutter.EVENT_PROPAGATE;
     }
 
-    _onButtonRelease(actor, event) {
+    _onButtonRelease() {
         this._result = this._getGeometry();
         Tweener.addTween(this._group,
                          { opacity: 0,
index 59c5699518605756807b51ea8a1ff78f0c087429..796868b61bf24f079b8b554bd0cda5ecaaf9694d 100644 (file)
@@ -335,7 +335,7 @@ var ScreenSaverDBus = class {
         screenShield.connect('active-changed', shield => {
             this._dbusImpl.emit_signal('ActiveChanged', GLib.Variant.new('(b)', [shield.active]));
         });
-        screenShield.connect('wake-up-screen', shield => {
+        screenShield.connect('wake-up-screen', () => {
             this._dbusImpl.emit_signal('WakeUpScreen', null);
         });
 
index 9b77057dee78db21794e4ecff6c5ba691d65a774..51cb205c6e8f5fe7d2793f475eb3013556628939 100644 (file)
@@ -202,7 +202,7 @@ var Slider = class extends BarLevel.BarLevel {
         this.emit('value-changed', this._value);
     }
 
-    _getMinimumIncrement(actor) {
+    _getMinimumIncrement() {
         return 0.1;
     }
 };
index 8f128da1531746f09163691237e329f47221f424..ed83b2aab5b6e2673fcc0850e567db10d7c2c086 100644 (file)
@@ -67,7 +67,7 @@ function ssidToLabel(ssid) {
     return label;
 }
 
-function ensureActiveConnectionProps(active, client) {
+function ensureActiveConnectionProps(active) {
     if (!active._primaryDevice) {
         let devices = active.get_devices();
         if (devices.length > 0) {
@@ -401,7 +401,7 @@ var NMConnectionDevice = class NMConnectionDevice extends NMConnectionSection {
                 let item = this._connectionItems.get(activeConnection.connection.get_uuid());
                 if (item) {
                     this._activeConnection = activeConnection;
-                    ensureActiveConnectionProps(this._activeConnection, this._client);
+                    ensureActiveConnectionProps(this._activeConnection);
                     item.setActiveConnection(this._activeConnection);
                 }
             }
@@ -1802,13 +1802,13 @@ var NMApplet = class extends PanelMenu.SystemIndicator {
 
         connection = this._client.get_primary_connection();
         if (connection) {
-            ensureActiveConnectionProps(connection, this._client);
+            ensureActiveConnectionProps(connection);
             return connection;
         }
 
         connection = this._client.get_activating_connection();
         if (connection) {
-            ensureActiveConnectionProps(connection, this._client);
+            ensureActiveConnectionProps(connection);
             return connection;
         }
 
@@ -1845,7 +1845,7 @@ var NMApplet = class extends PanelMenu.SystemIndicator {
             a => (a instanceof NM.VpnConnection)
         );
         vpnConnections.forEach(a => {
-            ensureActiveConnectionProps(a, this._client);
+            ensureActiveConnectionProps(a);
         });
         this._vpnSection.setActiveConnections(vpnConnections);
 
index 2a755d463ffd5ddbf0a1e4ca30079465b03d2f94..c236805afa35c1ee8f0d28affe229d5dbab29319 100644 (file)
@@ -103,7 +103,7 @@ var StreamSlider = class {
         this._slider.setValue(value);
     }
 
-    _sliderChanged(slider, value, property) {
+    _sliderChanged(slider, value) {
         if (!this._stream)
             return;
 
@@ -346,7 +346,7 @@ var Indicator = class extends PanelMenu.SystemIndicator {
 
         this._control = getMixerControl();
         this._volumeMenu = new VolumeMenu(this._control);
-        this._volumeMenu.connect('icon-changed', menu => {
+        this._volumeMenu.connect('icon-changed', () => {
             let icon = this._volumeMenu.getIcon();
 
             if (icon != null) {
index 89fe08afcaefcf4860cd72833563fbe870bbeb0e..547886e287f631c1ebaab9ea81675b78d4f53358 100644 (file)
@@ -196,7 +196,7 @@ var SwitcherPopup = GObject.registerClass({
         return Clutter.EVENT_STOP;
     }
 
-    _clickedOutside(actor, event) {
+    _clickedOutside() {
         this.fadeAndDestroy();
         return Clutter.EVENT_PROPAGATE;
     }
index f8baee116db06adcb09c74c6faca083ca7f315f1..f3428e1f4a0d09ea7dd20f1b251a4af5e22593d0 100644 (file)
@@ -169,8 +169,8 @@ var ClutterFrameTicker = class {
         this._startTime = -1;
         this._currentTime = -1;
 
-        this._timeline.connect('new-frame', (timeline, frame) => {
-            this._onNewFrame(frame);
+        this._timeline.connect('new-frame', () => {
+            this._onNewFrame();
         });
 
         let perfLog = Shell.PerfLog.get_default();
@@ -186,7 +186,7 @@ var ClutterFrameTicker = class {
         return 60;
     }
 
-    _onNewFrame(frame) {
+    _onNewFrame() {
         // If there is a lot of setup to start the animation, then
         // first frame number we get from clutter might be a long ways
         // into the animation (or the animation might even be done).
index 5c9d46021e77e4461dfbd3cf44ed2c87223d45c5..527c785e053843d8c66d61d3ae08cae7dc4bcbba 100644 (file)
@@ -99,7 +99,7 @@ var UnlockDialog = class {
             this._authPrompt.cancel();
     }
 
-    _otherUserClicked(button, event) {
+    _otherUserClicked() {
         Gdm.goto_login_session_sync(null);
 
         this._authPrompt.cancel();
index f455751c0db1bcef35f776528475c478f6a0ed38..864e485dfdeb65ad05c9e99a50b65c3037c98e38 100644 (file)
@@ -512,7 +512,7 @@ var ViewSelector = class {
         return this._text.text == this._entry.get_text();
     }
 
-    _onTextChanged(se, prop) {
+    _onTextChanged() {
         let terms = getTermsForSearchString(this._entry.get_text());
 
         this._searchActive = (terms.length > 0);
index a939b768167a575e9f957c32197e3339ec910a4c..199b3504e4b894d878f9ccf0053d471d74b59d3f 100644 (file)
@@ -2035,7 +2035,7 @@ var WindowManager = class {
         this._tilePreview.show(window, tileRect, monitorIndex);
     }
 
-    _hideTilePreview(shellwm) {
+    _hideTilePreview() {
         if (!this._tilePreview)
             return;
         this._tilePreview.hide();
@@ -2103,11 +2103,11 @@ var WindowManager = class {
             app.activate();
     }
 
-    _toggleAppMenu(display, window, event, binding) {
+    _toggleAppMenu() {
         Main.panel.toggleAppMenu();
     }
 
-    _toggleCalendar(display, window, event, binding) {
+    _toggleCalendar() {
         Main.panel.toggleCalendar();
     }
 
index 4c2cbf06469d97f13bc1f9e93a1e7951d4562003..781dda555a2daf0d0af17bac3ef1c8f2b8d8bb4c 100644 (file)
@@ -376,7 +376,7 @@ var WindowClone = GObject.registerClass({
         return false;
     }
 
-    _onClicked(action, actor) {
+    _onClicked() {
         this._activate();
     }
 
@@ -467,7 +467,7 @@ var WindowOverlay = class {
 
         this._maxTitleWidth = -1;
 
-        this._updateCaptionId = metaWindow.connect('notify::title', w => {
+        this._updateCaptionId = metaWindow.connect('notify::title', () => {
             this.title.text = this._getCaption();
             this.relayout(false);
         });
index 9edddfa24921f58faf01316dd3a79b77949ff346..0c43d4d19fdeb685d26961a776caeeb4369f2b14 100644 (file)
@@ -465,7 +465,7 @@ var WorkspaceThumbnail = class {
             this._allWindows[i].disconnect(this._minimizedChangedIds[i]);
     }
 
-    _onDestroy(actor) {
+    _onDestroy() {
         this.workspaceRemoved();
 
         if (this._bgManager) {